package cn.com.weather.nf.repository;

import cn.com.weather.nf.entity.Cctest1;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Repository
public interface Cctest1Dao extends JpaRepository<Cctest1, Integer> {


    @Query("select t from Cctest1 t order by id desc ")
    List<Cctest1> getList();


    List<Cctest1> findById(Integer id);
}
